#include "stdafx.h"
#include "Card.h"
Card::Card(suit ff , int vv)
{
	assert(vv>=1 && vv <= 13);
	f = ff;
	v = vv;
}

void Card::write_out()
{
	const char *tab1[]={"Clubs", "Diamonds", "Hearts", "Spades"};
	const char *tab2[]={"Jack", "Queen", "King"};
	cout<<tab1[f]<<' ';
	if (v==1)
		cout<<"Ace";
	else if (v<= 10)
		cout<<v;
	else
		cout<<tab2[v-11];
}